<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="bean.entity.*,bean.dal.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <head>
<%
	String adminid = (String) session.getAttribute("adminid");
	if(adminid==null) {%><script type="text/javascript" >
		window.alert("您还没有登录，请先登录！");
			window.location.href="<%=basePath%>admin/login.jsp";
	</script>
	<%adminid="";}
	String adminname="";
	AdminManager adminM=new AdminManager();
	adminname=adminM.getAdminByAdminId(adminid).getAdminname();
%>
    <base href="<%=basePath%>">
    <title>管理员页</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" type="text/css" href="css/register.css">
	<link rel="stylesheet" type="text/css" href="css/top.css">
	<link rel="stylesheet" type="text/css" href="css/iconfont.css">
	<link rel="stylesheet" type="text/css" href="css/style2.css">
    <link rel="stylesheet" type="text/css" href="css/creditsex.css">
	<script type="text/javascript" >
		function order(){
			window.location.href="<%=basePath%>admin/order.jsp";
		}
		function information(){
			window.location.href="<%=basePath%>admin/information.jsp";
		}
		function types(){
			window.location.href="<%=basePath%>admin/type.jsp";
		}
		function user(){
			window.location.href="<%=basePath%>admin/user.jsp";
		}
		function clerk(){
			window.location.href="<%=basePath%>admin/clerk.jsp";
		}
		function admin(){
			window.location.href="<%=basePath%>admin/admin.jsp";
		}
		function creditex(){
			window.location.href="<%=basePath%>admin/creditex.jsp";
		}
	</script>
  </head>
  
  <body>
	<div class="ui_top">
		<div align="right">
			<%=adminname %>您好，欢迎使用！
			<a href="./admin/logout.jsp">&nbsp;|&nbsp;退出&nbsp;|&nbsp;</a>
		</div>
	</div>
